package com.pojo;

import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.Map;

@Component
//@ConfigurationProperties(prefix = "student")
//@PropertySource(value = "application.properties")
public class Student {
    private String sname;
    private String age;
    private String birthday;
    private String[] scores;
    private BJ bj;
    private Map map;

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public BJ getBj() {
        return bj;
    }

    public void setBj(BJ bj) {
        this.bj = bj;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String[] getScores() {
        return scores;
    }

    public void setScores(String[] scores) {
        this.scores = scores;
    }

    public Map getMap() {
        return map;
    }

    public void setMap(Map map) {
        this.map = map;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sname='" + sname + '\'' +
                ", age='" + age + '\'' +
                ", birthday='" + birthday + '\'' +
                ", scores=" + Arrays.toString(scores) +
                ", bJ=" + bj +
                ", map=" + map +
                '}';
    }
}
